<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*,erp.education.server.db.entites.setup.school.Courses"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Register Form</title>
 <link rel="stylesheet" href="css/default.css"/>
<link rel="stylesheet" href="css/<%=session.getAttribute("cssView")%>/jquery-ui.css"/>
<script type="text/javascript">
 $(document).ready(function(){
 defaultFunction();
 ui();
 jGrid();
 
 })
 </script>
<script type="text/javascript" src="js/setup/courses.js"></script>
</head>

<body>
<%
List result=(List)request.getAttribute("result");
List<Courses> courses=(List<Courses>)result.get(0);
 
%>
<div class="pageHeader">Course details</div>
<div class="content">
 <div class="form">
<form name="coursesDetails" >

<table class="form" cellpadding="0" cellspacing="0" >
<tr>
  <td>Enter Course Name: </td><td><input type="text" notNull msg="Enter Course Name" name="courseName"/> <input type="hidden" name="courseId" value="-1"/></td>
  </tr>
  <tr><td>Enter Proirity</td><td><input type="text" notNull msg="Enter Course Proirity" name="coursePrority"/> </td>
  </tr>
  <tr>
  <td colspan="2" align="right" ><input type="button" value="Save" onclick="courses.saveupdate();" /><input type="reset" value="Clear" /></td></tr>
</table>

</form> 
</div>
<br />
<div class="grid_holder">
<a href="#" navigate onclick="return false" style="text-decoration:none" >
<table navigate class="grid" cellpadding="0" cellspacing="0" onDelete="courses.removeCourses()" onEdit="courses.editCourses()" searchAction="addcourse.action">
<thead>
<tr>
 <th></th>
<th class="hide" >Course Id</th>
 
<th>Courses Name</th>
 <th>Priority</th>
 
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<%
 
for(Courses course:courses){
%>
<tr active='N' >
 <td>&nbsp;&nbsp;</td>
  <td class="hide" field="courseId" edit="false"><%=course.getCourseId() %></td>
  
  <td field="courseName"><%=course.getCourseName() %></td>
  
   <td field="coursePrority"><%=course.getCoursePriority() %></td>
  <td width="16"><span class="ui-icon ui-icon-pencil"></span></td>
  <td width="16"><span class="ui-icon ui-icon-trash"></span></td>
</tr>
 <%} %>
</tbody></table>
</a>
</div>
</div>
</body>
</html>
